package com.ruoyi.lynhgl.service.impl;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import com.alibaba.fastjson.JSON;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.lynhgl.mapper.TbLynhglSssjcxMapper;
import com.ruoyi.lynhgl.domain.TbLynhglSssjcx;
import com.ruoyi.lynhgl.service.ITbLynhglSssjcxService;

import static com.ruoyi.util.tools.generateOperateId;
import static com.ruoyi.util.tools.testApiAsync;

/**
 * 实时数据查询Service业务层处理
 * 
 * @author hc
 * @date 2023-11-10
 */
@Service
public class TbLynhglSssjcxServiceImpl implements ITbLynhglSssjcxService 
{
    @Autowired
    private TbLynhglSssjcxMapper tbLynhglSssjcxMapper;

    /**
     * 查询实时数据查询
     * 
     * @param id 实时数据查询主键
     * @return 实时数据查询
     */
    @Override
    public TbLynhglSssjcx selectTbLynhglSssjcxById(Long id)
    {
        return tbLynhglSssjcxMapper.selectTbLynhglSssjcxById(id);
    }

    /**
     * 查询实时数据查询列表
     * 
     * @param tbLynhglSssjcx 实时数据查询
     * @return 实时数据查询
     */
    @Override
    public List<TbLynhglSssjcx> selectTbLynhglSssjcxList(TbLynhglSssjcx tbLynhglSssjcx)
    {
        return tbLynhglSssjcxMapper.selectTbLynhglSssjcxList(tbLynhglSssjcx);
    }

    /**
     * 新增实时数据查询
     * 
     * @param tbLynhglSssjcx 实时数据查询
     * @return 结果
     */
    @Override
    public int insertTbLynhglSssjcx(TbLynhglSssjcx tbLynhglSssjcx)
    {
        return tbLynhglSssjcxMapper.insertTbLynhglSssjcx(tbLynhglSssjcx);
    }

    /**
     * 修改实时数据查询
     * 
     * @param tbLynhglSssjcx 实时数据查询
     * @return 结果
     */
    @Override
    public int updateTbLynhglSssjcx(TbLynhglSssjcx tbLynhglSssjcx)
    {
        return tbLynhglSssjcxMapper.updateTbLynhglSssjcx(tbLynhglSssjcx);
    }

    /**
     * 批量删除实时数据查询
     * 
     * @param ids 需要删除的实时数据查询主键
     * @return 结果
     */
    @Override
    public int deleteTbLynhglSssjcxByIds(Long[] ids)
    {
        return tbLynhglSssjcxMapper.deleteTbLynhglSssjcxByIds(ids);
    }

    /**
     * 删除实时数据查询信息
     * 
     * @param id 实时数据查询主键
     * @return 结果
     */
    @Override
    public int deleteTbLynhglSssjcxById(Long id)
    {
        return tbLynhglSssjcxMapper.deleteTbLynhglSssjcxById(id);
    }
}
